package com.yunhuakeji.wddx.control;

import java.io.InputStream;

import com.yunhuakeji.wddx.impl.IMHome;
import com.yunhuakeji.wddx.utils.ResultUtil;

public class MRMBController extends ActionTicketSupport {
	private static final long serialVersionUID = 1L;
	private InputStream inputStream;
	private String callback, xkkh, ks, js, total,path,result;

	public MRMBController() throws Exception {
		super();
	}


	public String getKCQDLB() {
		inputStream = new ResultUtil().resultString(callback, new IMHome().getKCQDLB(this.getUserid(),this.getTicket()));
		return SUCCESS;
	}

	public String setKCQD() {
		inputStream = new ResultUtil().resultString(callback, new IMHome().setKCQD(this.getUserid(), xkkh, ks, js,this.getTicket()));
		return SUCCESS;
	}

	public String getSTATForKCQD() {
		result = new IMHome().getSTATForKCQD(this.getUserid(),this.getTicket()).toString();
		return SUCCESS;
	}

	public String getHaveBreakfastInfo() {
		inputStream = new ResultUtil().resultString(callback, new IMHome().getHaveBreakfastInfo(this.getUserid(),this.getTicket()));
		return SUCCESS;
	}

	public String setHaveBreakfast() {
		inputStream = new ResultUtil().resultString(callback, new IMHome().setHaveBreakfast(this.getUserid(),this.getTicket()));
		return SUCCESS;
	}

	public String getEchartsForHaveBreakfast() {
		result = new IMHome().getEchartsForHaveBreakfast(this.getUserid(),this.getTicket()).toString();
		return SUCCESS;
	}

	public String getGetBackInfo() {
		inputStream = new ResultUtil().resultString(callback, new IMHome().getGetBackInfo(this.getUserid(),this.getTicket()));
		return SUCCESS;
	}

	public String setGetBack() {
		inputStream = new ResultUtil().resultString(callback, new IMHome().setGetBack(this.getUserid(),this.getTicket()));
		return SUCCESS;
	}

	public String getEchartsForGetBack() {
		result = new IMHome().getEchartsForGetBack(this.getUserid(),this.getTicket()).toString();
		return SUCCESS;
	}

	public String getSportsInfo() {
		inputStream = new ResultUtil().resultString(callback, new IMHome().getSportsInfo(this.getUserid(),this.getTicket()));
		return SUCCESS;
	}

	public String getEchartsForSports() {
		result = new IMHome().getEchartsForSports(this.getUserid(),this.getTicket()).toString();
		return SUCCESS;
	}

	public String setSportsInfo() {
		inputStream = new ResultUtil().resultString(callback, new IMHome().setSportsInfo(this.getUserid(), total,this.getTicket()));
		return SUCCESS;
	}

	public InputStream getInputStream() {
		return inputStream;
	}

	public void setInputStream(InputStream inputStream) {
		this.inputStream = inputStream;
	}

	public String getCallback() {
		return callback;
	}

	public void setCallback(String callback) {
		this.callback = callback;
	}

	public String getKs() {
		return ks;
	}

	public void setKs(String ks) {
		this.ks = ks;
	}

	public String getJs() {
		return js;
	}

	public void setJs(String js) {
		this.js = js;
	}

	public String getTotal() {
		return total;
	}

	public void setTotal(String total) {
		this.total = total;
	}

	public String getXkkh() {
		return xkkh;
	}

	public void setXkkh(String xkkh) {
		this.xkkh = xkkh;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}


	public String getResult()
	{
		return result;
	}


	public void setResult(String result)
	{
		this.result = result;
	}

}
